//
//  ViewController.m
//  GifBrowser
//
//  Created by 栋栋 施 on 15/8/24.
//  Copyright (c) 2015年 栋栋 施. All rights reserved.
//

#import "ViewController.h"
#import "DDGifView.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet DDGifView *gifView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    NSURL * fileURL = [[NSBundle mainBundle] URLForResource:@"cupGif" withExtension:@"gif"];
//    [self.gifView dd_setLocalFileGifURL:fileURL];
//    [self.gifView dd_startGif];
    
    
    NSURL * remoteURL = [NSURL URLWithString:@"http://imgsrc.baidu.com/baike/pic/item/7af40ad162d9f2d339d2a789abec8a136227cc91.jpg"];
    [self.gifView dd_setRemoteFileGifURL:remoteURL];
    
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
